package cn.zhuangcloud.newversion.common;

import cn.zhuangcloud.newversion.cas.CasController;
import cn.zhuangcloud.newversion.githook.HookController;
import cn.zhuangcloud.newversion.index.IndexController;
import cn.zhuangcloud.newversion.login.LoginController;
import cn.zhuangcloud.newversion.logout.LogoutController;
import cn.zhuangcloud.newversion.register.RegController;
import com.jfinal.config.Routes;

public class FrontRoutes extends Routes {
    @Override
    public void config() {
        setBaseViewPath("view");

        add("/githook/hooker", HookController.class);
        add("/", IndexController.class, "/");
//        add("/login", LoginController.class, "/");
        add("/logout", LogoutController.class, "/");
        add("/register", RegController.class, "/");
        add("/cas", CasController.class, "/");
    }
}
